package com.tl.mybatis02.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Antg
 * @date 2021/8/315:46
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Address {
    private Integer id;
    private Integer stuId;
    private String address;
    private Integer phone;

    private Student student;//该地址对应的用户

    public Address(String address, Integer phone) {
        this.address = address;
        this.phone = phone;
    }
}
